package com.blindBox.front.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blindBox.front.dao_pojo.Paper;
import com.blindBox.front.mapper.PaperMapper;
import com.blindBox.front.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


@Transactional
@Service
public class PaperServiceImpl extends ServiceImpl<PaperMapper, Paper> implements PaperService {

    @Autowired
    private PaperMapper paperMapper;


    @Override
    public List<Integer> getPaperIdsByList(Integer sex,Integer u_id) {
        return paperMapper.getPaperIdsByList(sex,u_id);
    }

    @Override
    public void emptyAllPaperStatus(Integer sex) {
        paperMapper.emptyAllPaperStatus(sex);
    }

    @Override
    public List<Paper> getUserAllPapers(Integer u_id) {
        return paperMapper.getUserAllPapers(u_id);
    }
}
